package com.platform.web.model;

import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableLogic;

import java.io.Serializable;

/**
 * <p>
 * 1)用户基础信息
 * </p>
 *
 * @author pengshuiming
 * @since 2018-06-25
 */
public class SysUser extends Model<SysUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户标识
     */
    private String id;
    private String account;
    /**
     * 名称
     */
    private String name;
    /**
     * 英文名称
     */
    private String enName;
    /**
     * 登录密码
     */
    private String password;
    /**
     * 状态（1启用，0禁用）
     */
    private Integer status;
    /**
     * 注册身份(CZ 仓主 FWS服务商  HZ货主 XTGLY系统管理员)
     */
    private String type;
    /**
     * 用户类型( 1企业会员  2个人会员)
     */
    private String userType;
    /**
     * 手机号码
     */
    private String userMobile;
    /**
     * 注册时间
     */
    private Date modifyTime;
    /**
     * 供应商(1--是供应商 0--不是供应商)
     */
    private Integer isSupplier;
    /**
     * C店(线上店)(1--是C店 0--不是C店)
     */
    private Integer isShop;
    /**
     * 门店(线下店)(1--线下店0--不是线下店)
     */
    private Integer isStore;
    /**
     * C店管理员(线上门管理员)(1--是C店管理员0--不是C店管理员)
     */
    private Integer isShopManager;
    /**
     * 门店管理员（线下店）(1--是线下店管理员0--不是线下店管理员)
     */
    private Integer isStoreManager;
    /**
     * 优先级
     */
    private String priority;
    /**
     * 备注
     */
    private String remark;
    /**
     * 逻辑删除标志（1：删除  0：未删除）
     */
    @TableLogic
    private Integer isDel;
    /**
     * 注册来源(1:商家中心，2,:商城APP,3:运营平台)
     */
    private String modifySource;
    /**
     * 最后登陆来源(1:商家中心，2,:商城APP,3:运营平台)
     */
    private String finallyLoginSource;
    /**
     * 最后一次登陆时间
     */
    private Date finallyLoginTime;
    /**
     * 最后一次登录IP
     */
    private String finallyLoginIp;
    /**
     * 头像
     */
    private String headPortrait;
    /**
     * 支付密码
     */
    private String payPassword;
    /**
     * 是否设置支付密码,(0:无,1:已设置）
     */
    private String isPayPassword;
    /**
     * 应范眼本地缓存
     */
    private String localStorage;
    /**
     * 0--普通账号，1-管理员
     */
    private Integer isAdmin;
    private String email;
    /**
     * 父标识
     */
    private String parentId;
    /**
     * 邀请码
     */
    private String inviteCode;
    /**
     * 邀请人
     */
    private String inviter;
    /**
     * 同步IM后返回的token
     */
    private String imToken;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getUserMobile() {
        return userMobile;
    }

    public void setUserMobile(String userMobile) {
        this.userMobile = userMobile;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getIsSupplier() {
        return isSupplier;
    }

    public void setIsSupplier(Integer isSupplier) {
        this.isSupplier = isSupplier;
    }

    public Integer getIsShop() {
        return isShop;
    }

    public void setIsShop(Integer isShop) {
        this.isShop = isShop;
    }

    public Integer getIsStore() {
        return isStore;
    }

    public void setIsStore(Integer isStore) {
        this.isStore = isStore;
    }

    public Integer getIsShopManager() {
        return isShopManager;
    }

    public void setIsShopManager(Integer isShopManager) {
        this.isShopManager = isShopManager;
    }

    public Integer getIsStoreManager() {
        return isStoreManager;
    }

    public void setIsStoreManager(Integer isStoreManager) {
        this.isStoreManager = isStoreManager;
    }

    public String getPriority() {
        return priority;
    }

    public void setPriority(String priority) {
        this.priority = priority;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public String getModifySource() {
        return modifySource;
    }

    public void setModifySource(String modifySource) {
        this.modifySource = modifySource;
    }

    public String getFinallyLoginSource() {
        return finallyLoginSource;
    }

    public void setFinallyLoginSource(String finallyLoginSource) {
        this.finallyLoginSource = finallyLoginSource;
    }

    public Date getFinallyLoginTime() {
        return finallyLoginTime;
    }

    public void setFinallyLoginTime(Date finallyLoginTime) {
        this.finallyLoginTime = finallyLoginTime;
    }

    public String getFinallyLoginIp() {
        return finallyLoginIp;
    }

    public void setFinallyLoginIp(String finallyLoginIp) {
        this.finallyLoginIp = finallyLoginIp;
    }

    public String getHeadPortrait() {
        return headPortrait;
    }

    public void setHeadPortrait(String headPortrait) {
        this.headPortrait = headPortrait;
    }

    public String getPayPassword() {
        return payPassword;
    }

    public void setPayPassword(String payPassword) {
        this.payPassword = payPassword;
    }

    public String getIsPayPassword() {
        return isPayPassword;
    }

    public void setIsPayPassword(String isPayPassword) {
        this.isPayPassword = isPayPassword;
    }

    public String getLocalStorage() {
        return localStorage;
    }

    public void setLocalStorage(String localStorage) {
        this.localStorage = localStorage;
    }

    public Integer getIsAdmin() {
        return isAdmin;
    }

    public void setIsAdmin(Integer isAdmin) {
        this.isAdmin = isAdmin;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }

    public String getInviter() {
        return inviter;
    }

    public void setInviter(String inviter) {
        this.inviter = inviter;
    }

    public String getImToken() {
        return imToken;
    }

    public void setImToken(String imToken) {
        this.imToken = imToken;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysUser{" +
        ", id=" + id +
        ", account=" + account +
        ", name=" + name +
        ", enName=" + enName +
        ", password=" + password +
        ", status=" + status +
        ", type=" + type +
        ", userType=" + userType +
        ", userMobile=" + userMobile +
        ", modifyTime=" + modifyTime +
        ", isSupplier=" + isSupplier +
        ", isShop=" + isShop +
        ", isStore=" + isStore +
        ", isShopManager=" + isShopManager +
        ", isStoreManager=" + isStoreManager +
        ", priority=" + priority +
        ", remark=" + remark +
        ", isDel=" + isDel +
        ", modifySource=" + modifySource +
        ", finallyLoginSource=" + finallyLoginSource +
        ", finallyLoginTime=" + finallyLoginTime +
        ", finallyLoginIp=" + finallyLoginIp +
        ", headPortrait=" + headPortrait +
        ", payPassword=" + payPassword +
        ", isPayPassword=" + isPayPassword +
        ", localStorage=" + localStorage +
        ", isAdmin=" + isAdmin +
        ", email=" + email +
        ", parentId=" + parentId +
        ", inviteCode=" + inviteCode +
        ", inviter=" + inviter +
        ", imToken=" + imToken +
        "}";
    }
}
